<template>
  <div>
    <u-cell-group :border="false">
      <required-parameter />
    </u-cell-group>
    {{ editConfigCom }}
  </div>
</template>

<script>
import requiredParameter from "@/components/cusFormConfig/requiredParameter";
export default {
  components: { requiredParameter },
  computed: {
    pageData() {
      return this.$store.state.page.page;
    },
    editConfigComActiveId() {
      return this.$store.state.page.editConfigComActiveId;
    },
    activeIndex({ pageData, editConfigComActiveId }) {
      return pageData.items.findIndex((v) => v.id === editConfigComActiveId);
    },
    //组件本身属性
    editConfigCom({ pageData, activeIndex }) {
      return pageData.items[activeIndex];
    },
  },
  data() {
    return {};
  },
  created() {},
  methods: {},
};
</script>

<style scoped lang="scss"></style>
